from flask import Blueprint, send_from_directory, current_app
import os

admin_bp = Blueprint('admin', __name__)

@admin_bp.route('/')
def admin_index():
    static_dir = os.path.join(current_app.root_path, '..', 'static')
    return send_from_directory(static_dir, 'admin_main.html')

from . import routes 